package com.wondersgroup.hs.report.plugin.utils;

import com.fr.base.ConfigManager;
import com.fr.base.Parameter;

/**
 * Created by zarra on 2017/5/12.
 */
public class GlobalParameterUtils {

    static public String getGlobalParameter(String name){
        Parameter[] parameters = ConfigManager.getInstance().getGlobal_Parameters();
        for (Parameter p : parameters){
            if (p.getName().equals(name)){
                return p.getValue().toString();
            }
        }
        return null;
    }

}
